<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var count=0
        function clickFunc(){
            document.getElementById("h1").innerText=`数值${++count}`
        }
    </script>
</head>
<body>
    <div style="text-align: center">
        <h1 id="h1" style="color: red;font-size:40px">数值0</h1>
        <button style="font-size: 30px;background-color: burlywood;" onclick="clickFunc()">
            单击
        </button>
    </div>
</body>
</html>
